package com.gae.blore.server;

import java.util.List;

import com.gae.blore.client.RailwayStationService;
import com.gae.blore.client.domain.RailwayStation;
import com.gae.blore.server.dao.IRailwayStationServiceDao;
import com.gae.blore.server.dao.RailwayStationServiceDao;
import com.google.gwt.user.server.rpc.RemoteServiceServlet;

public class RailwayStationServiceImpl extends RemoteServiceServlet implements
		RailwayStationService {
	/**
	 * 
	 */
	private static final long serialVersionUID = -8634550135754437596L;
	private IRailwayStationServiceDao railwayStationServiceDao = new RailwayStationServiceDao();

	@Override
	public List<RailwayStation> getAllRailwayStations() {
		return railwayStationServiceDao.getRailwayStations();
	}

	@Override
	public RailwayStation getRailwayStation(Long id) {
		return railwayStationServiceDao.getRailwayStation(id);
	}

}
